{include file="index/_form_meta" /}

<style>
    .layui-form .layui-form-label{
        width: 150px;
    }
    .layui-form .layui-input{
        width: 80%;
    }
</style>
</head>
<body>

<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-form" lay-filter="layuiadmin-form-role" id="layuiadmin-form-role" style="padding: 30px;">


            <fieldset class="layui-elem-field">
                <legend>基本信息</legend>
                <div class="layui-field-box">

                    <div class="layui-form-item">
                        <label class="layui-form-label">网站标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="SITE_TITLE" autocomplete="off" class="layui-input" value="{$data.SITE_TITLE|default=''}">
                        </div>
                    </div>

                </div>
            </fieldset>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="*">提交</button>
                </div>
            </div>
        </div>
    </div>
</div>


<script src="__STATIC__/layuiadmin/layui/layui.js"></script>
<script src="__STATIC__/js/base.js"></script>
<script>
    layui.use(['form', 'layer', 'laydate'], function () {
        var form = layui.form
            , $ = layui.jquery
            , layer = layui.layer;


        form.on("submit(*)", function (data) {
            $.post("{:url('siteOption/save')}", data.field, function (ret) {
                if (ret.code == 0) {
                    layer.msg(ret.msg, {time: 1500, icon: 6});
                } else {
                    layer.msg(ret.msg, {time: 1500, icon: 5});
                }
            });
            return false;
        })

    })
</script>
</body>
</html>